package cn.hxzy.client;

import cn.hxzy.domain.ClassMenu;
import cn.hxzy.domain.UserClass;
import cn.hxzy.response.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("user-service")
public interface UserClassClient {
    @GetMapping("/user/selectClassById")
    public R<List<UserClass>> selectClassById();

    @GetMapping("/userClient/selectList/{classId}")
    List<ClassMenu> selectList(@PathVariable Integer classId);


}
